import React from 'react';
import CommonList from '../../../components/CommonLists/list';
import { Button } from 'antd';

class RiskCaseCategoryList extends CommonList {
  constructor(props) {
    super(props);
    this.api = 'caseCategory';
    this.detailButton = record => {
      return (
        <Button
          size='small'
          type='link'
          onClick={() => props.history.push('/case/lib/' + record.case_category_id + '/list')}
        >
          详情
        </Button>
      );
    };
    this.btnGroup = [this.detailButton, this.editButton, this.delButton];
  }

  // 删除时的参数
  getDeleteParam = record => {
    return { id: record.case_category_id };
  };

  componentWillMount() {}
}

export default RiskCaseCategoryList;
